package com.openitems.ws;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;

import com.openitems.data.pojo.Artifact;

@Path("/artifact")
public class ArtifactFacadeREST extends AbstractREST<Artifact> {

  public ArtifactFacadeREST() {
		super(Artifact.class);
	}
  
  	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	public String AddItem(Artifact artifact) {
	  super.upsert(artifact);
	  return "Success";
	}
} 
